<template>
    <div class="content">
<!--        <el-header height="80px">-->
<!--            <span></span>-->
<!--        </el-header>-->
<!--        <el-carousel :interval="4000" type="card" height="400px" style="margin-top: 20px">-->
<!--            <el-carousel-item v-for="item in images" :key="item">-->
<!--                <el-image :src="item" style="width: 400px;height: 300px;margin-left: 200px"></el-image>-->
<!--            </el-carousel-item>-->
<!--        </el-carousel>-->
      <div class="text">
        <span class='wel'>欢迎来到食堂，今天想吃点啥?</span>
        <div class="btn">
          <el-button type="warning" plain icon="el-icon-user" @click="toLogin">
            <span>前往登录</span>
          </el-button>
        </div>
      </div>
    </div>
</template>

<script>
    export default {
        name: "Index",
        data(){
            return{
                images:[
                    '/upload/p1.png',
                    '/upload/p2.png',
                    '/upload/p3.png',


                ],
                url:'../../public/upload/p1.png'
            }
        },
        methods:{
            toLogin(){
                this.$router.push("/login")
            }
        }
    }
</script>

<style scoped>
.content {
  background: url(../../public/upload/img5.jpg) no-repeat;
  background-size: cover;
  height: 100vh;
  position: relative;
}
.bck{
    background:url(../../public/upload/p1.png) no-repeat center;
    width:100%;
    height:800px;
}

.el-header {
    background-color: #009be2;
    color: #333;
    text-align: center;
    line-height: 20px;
}
.text {
  position: absolute;
  top: 200px;
  //right: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative
}
.wel {
  color: #009be2;
  font-size: 50px;
  font-weight: 600;
}
.btn {
  padding:140px;
  align-items: center;
}
/*.bth {*/
/*  top: 10px;*/
/*  right: 10px;*/
/*}*/
.el-button {
  width: 200px;
  height: 80px;
  border-radius: 10px;
}
</style>
